<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 600px;
        height: 300px;
        margin: auto;
      }

      input[type="radio"] {
        height: 20px;
        width: 20px;
        appearance: none;
        position: relative;
      }
      input[type="radio"]:before {
        content: "";
        width: 20px;
        height: 20px;
        border: 1px solid #edd19d;
        display: inline-block;
        border-radius: 50%;
        vertical-align: middle;
      }
      input[type="radio"]:checked:before {
        content: "";
        width: 20px;
        height: 20px;
        border: 2px solid #edd19d;
        display: inline-block;
        border-radius: 50%;
        vertical-align: middle;
      }
      input[type="radio"]:checked:after {
        content: "";
        width: 12px;
        height: 12px;
        text-align: center;
        background-color: #edd19d;
        border-radius: 50%;
        display: block;
        position: absolute;
        top: 6px;
        left: 6px;
      }
      input[type="radio"]:checked + label {
        color: #edd19d;
      }
      input[type="radio"] + label {
        line-height: 29px;
        display: inline-block;
        vertical-align: top;
      }
    </style>
  </head>
  <body>
    <div>
      <input type="radio" name="" id="r1" />
      <label for="r1">项目1</label>
      <input type="radio" name="" id="r2" />
      <label for="r2">项目2</label>
    </div>
  </body>
</html>
